package com.chengzhi.disruptor.quickstart.group;

import com.chengzhi.disruptor.quickstart.OrderEvent;
import com.lmax.disruptor.WorkHandler;

/**
 * @author ruanchengzhi
 * @description: 消费者1
 * @date 2019/7/19 14:43
 */
public class OrderGroupEventHandlerOne implements WorkHandler<OrderEvent> {
    @Override
    public void onEvent(OrderEvent event) throws Exception {
        System.out.println("consumer1 receive " + event.getOrderId());
    }
}
